//
//  AppDelegate.m
//  QWView
//
//  Created by 李奇伟 on 15/3/28.
//  Copyright (c) 2015年 李奇伟. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface QWView : UIView
@property (nonatomic,retain,readonly)UIImageView *imageView;
@property (nonatomic,retain,readonly)UILabel *titleLabel;
@property (nonatomic,retain,readonly)UILabel *contentLabel;

#pragma 只有图片和标题，并且左侧图片
//左侧图片，右侧标题（图片的宽和高一致，中间以间距隔开，文本左对齐）
- (instancetype)initWithFrame:(CGRect)frame
                    leftImage:(NSString *)imageName
               titleLabeltext:(NSString *)titleText
                      Padding:(CGFloat)padding;

//左侧图片，右侧标题（中间以间距隔开，左右文本以比例size体现）
- (instancetype)initWithFrame:(CGRect)frame
                    leftImage:(NSString *)imageName
               titleLabeltext:(NSString *)titleText
                      Padding:(CGFloat)padding
                         Size:(CGFloat)size;
#pragma 左侧为图片，右侧上面为标题，下面为内容
- (instancetype)initWithFrame:(CGRect)frame
                    leftImage:(NSString *)imageName
             ImageOfLableSize:(CGFloat)imageSize
                      Padding:(CGFloat)padding
           titleOfSizeContent:(CGFloat)labelsize;
#pragma 右侧为图片，左侧侧上面为标题，下面为内容
- (instancetype)initWithFrame:(CGRect)frame
                    rightImage:(NSString *)imageName
             ImageOfLableSize:(CGFloat)imageSize
                      Padding:(CGFloat)padding
           titleOfSizeContent:(CGFloat)labelsize;
#pragma 上面为图片，下面为为标题，下面为内容
- (instancetype)initWithFrame:(CGRect)frame
                   upImage:(NSString *)imageName
             ImageOfLableSize:(CGFloat)imageSize
                      Padding:(CGFloat)padding;
#pragma  图片在上面，并且标题贴在图片上
- (instancetype)initWithFrame:(CGRect)frame
              titleAboveImage:(NSString *)imageName
             LabelOfImageSize:(CGFloat)labelSize;

@end
